import layout from 'components/blankLayout/blankLayout.vue'
const route = [{
    path: '/demoA',
    component: layout,
    name: 'demoA',
    meta: {
        title: 'demoA'
    },
    children: [{
        path: 'cp1',
        component: () =>
            import( /* webpackChunkName: "group-foo" */ './cbA/cp1'),
        name: 'cp1',
        meta: {
            title: 'cp1',
            keepAlive: true
        },
    },
    {
        path: 'cp2',
        component: () =>
            import( /* webpackChunkName: "group-foo" */ './cbA/cp2'),
        name: 'cp2',
        meta: {
            title: 'cp2',
            keepAliveList: ['cp1']
        },
    },
    {
        path: 'cp3',
        component: () =>
            import( /* webpackChunkName: "group-foo" */ './cbA/cp3'),
        name: 'cp3',
        meta: {
            title: '国际化语言',
            keepAlive: true
        },
    },
    {
        path: 'cp4',
        component: () =>
            import( /* webpackChunkName: "group-foo" */ './cbA/cp4'),
        name: 'cp4',
        meta: {
            title: '截图功能',
            keepAlive: true
        },
    },
    {
        path: 'cp5',
        component: () =>
            import( /* webpackChunkName: "group-foo" */ './cbA/cp5'),
        name: 'cp5',
        meta: {
            title: '生成二维码',
            keepAlive: true
        },
    },
    {
        path: 'cp6',
        component: () =>
            import( /* webpackChunkName: "group-foo" */ './cbA/cp6'),
        name: 'cp6',
        meta: {
            title: '加解密',
            keepAlive: true
        },
    },
    {
        path: 'cp7',
        component: () =>
            import( /* webpackChunkName: "group-foo" */ './cbA/cp7'),
        name: 'cp7',
        meta: {
            title: '动画演示',
            keepAlive: true
        },
    },
    {
        path: 'cp8',
        component: () =>
            import( /* webpackChunkName: "group-foo" */ './cbA/cp8'),
        name: 'cp8',
        meta: {
            title: '动画演示',
            keepAlive: true
        },
    },
    {
        path: 'cp9',
        component: () =>
            import( /* webpackChunkName: "group-foo" */ './cbA/cp9'),
        name: 'cp9',
        meta: {
            title: 'vue-count-to',
            keepAlive: true
        },
    },
    {
        path: 'cp10',
        component: () =>
            import( /* webpackChunkName: "group-foo" */ './cbA/cp10'),
        name: 'cp10',
        meta: {
            title: '拖拽表格',
            keepAlive: true
        },
    },
    {
        path: 'cp11',
        component: () =>
            import( /* webpackChunkName: "group-foo" */ './cbA/cp11'),
        name: 'cp11',
        meta: {
            title: '拖拽表格',
            keepAlive: true
        },
    },
    ]
},
{
    path: '/demoB',
    component: layout,
    name: 'demoB',
    meta: {
        title: 'demoB'
    },
    children: [{
        path: 'cp1',
        component: () =>
            import( /* webpackChunkName: "group-foo" */ './cbB/cp1'),
        name: 'cp1',
        meta: {
            title: '表单项演示'
        },
    },
    {
        path: 'cp2',
        component: () =>
            import( /* webpackChunkName: "group-foo" */ './cbB/cp2'),
        name: 'cp2',
        meta: {
            title: 'cp2'
        },
    },
    {
        path: 'cp3',
        component: () =>
            import( /* webpackChunkName: "group-foo" */ './cbB/cp3'),
        name: 'cp3',
        meta: {
            title: '聊天输入框'
        },
    },
    {
        path: 'cp4',
        component: () =>
            import( /* webpackChunkName: "group-foo" */ './cbB/cp4/chat/chat'),
        name: 'cp4',
        meta: {
            title: '空的'
        },
    },
    {
        path: 'cp5',
        component: () =>
            import( /* webpackChunkName: "group-foo" */ './cbB/cp5'),
        name: 'cp5',
        meta: {
            title: 'cp5'
        },
    },
    {
        path: 'cp6',
        component: () =>
            import( /* webpackChunkName: "group-foo" */ './cbB/cp6'),
        name: 'cp6',
        meta: {
            title: '测试mixin'
        },
    },
    {
        path: 'cp7',
        component: () =>
            import( /* webpackChunkName: "group-foo" */ './cbB/cp7'),
        name: 'cp7',
        meta: {
            title: '甘特图'
        },
    },
    {
        path: 'cp8',
        component: () =>
            import( /* webpackChunkName: "group-foo" */ './cbB/cp8'),
        name: 'cp8',
        meta: {
            title: '超级自定义表格'
        },
    },
    {
        path: 'cp9',
        component: () =>
            import( /* webpackChunkName: "group-foo" */ './cbB/cp9'),
        name: 'cp9',
        meta: {
            title: '富文本',
            keepAlive: false
        },
    },
    ]
},
];

route.forEach(item => {
    item.children.forEach(it => {
        it.path = `${item.path}/${it.path}`;
    });
});
export default route;